function AddUpdateListener(fun)
    CS.XLua.LuaManager.Instance:AddUpdate(fun)
end
function AddFixedUpdateListener(fun)
    CS.XLua.LuaManager.Instance:AddFixedUpdate(fun)
end
function AddLateUpdateListener(fun)
    CS.XLua.LuaManager.Instance:AddLateUpdate(fun)
end
function RemoveUpdateListener(fun)
    CS.XLua.LuaManager.Instance:RemoveUpdate(fun)
end
function RemoveFixedUpdateListener(fun)
    CS.XLua.LuaManager.Instance:RemoveFixedUpdate(fun)
end
function RemoveLateUpdateListener(fun)
    CS.XLua.LuaManager.Instance:RemoveLateUpdate(fun)
end

log = function(str)
    CS.XLua.LuaUtil.Log(str)
end
logWarn = function(str)
    CS.XLua.LuaUtil.LogWarning(str)
end
logError = function(str)
    CS.XLua.LuaUtil.LogError(str)
end


Color = CS.UnityEngine.Color
Color32 = CS.UnityEngine.Color32
Vector2 = CS.UnityEngine.Vector2
Vector3 = CS.UnityEngine.Vector3
Quaternion = CS.UnityEngine.Quaternion
Bound = CS.UnityEngine.Bound
Rect = CS.UnityEngine.Rect
GameObject = CS.UnityEngine.GameObject
SpriteRenderer = CS.UnityEngine.SpriteRenderer